package com.findyou.mapper;

import com.findyou.pojo.Article;
import com.findyou.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Title: CategoryMapper
 * @Author 贾金博
 * @Package com.findyou.mapper
 * @Date 2024/3/9 17:19
 * @description:
 */
@Mapper
public interface CategoryMapper {

    /**
     * 增加文章的分类的
     * @param category
     */
    void insert(Category category);

    /**
     * 查询全部的文章的分类
     * @return
     */
    List<Category> findAllCategory(int id);

    void update(Category category);

    Category detail(int id);

    void delete(int id);
}
